html {
    display: table;
    width: 100%;
    height: 100%;
   }
   body {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
   }